init_cmd = [
    {
        "cmd": 'ATE1',
        "match": 'ATE1\s{4}OK\s{2}',
    },
    {
        "cmd": 'AT+UPGRADE="AUTO",0',
        "match": 'AT\+UPGRADE="AUTO",0\s{4}OK\s{2}',
    },
    # {
    #     "cmd": 'AT^TRACECTRL=0,1,1',
    #     "match": 'AT\^TRACECTRL=0,1,1\r\n\r\nOK\r\n',
    # }
    # ,
    {
        "cmd": 'AT*EXASSERT=1;&W',
        "match": 'AT\*EXASSERT=1;&W\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": 2
    },
    {
        "cmd": 'AT+SAPBR=0,1',
        "match": 'AT\+SAPBR=0,1',
    },
    {
        "cmd": 'AT+CIPSHUT',
        "match": 'AT\+CIPSHUT\s{4}SHUT OK\s{2}',
        "wait": b'SHUT OK',
        "timeout": 10
    },
    {
        "cmd": 'AT+HTTPTERM',
        "match": 'AT\+HTTPTERM',
    },
    {
        "cmd": 'AT+FTPQUIT',
        "match": 'AT\+FTPQUIT',
    },
    {
        "cmd": 'AT+MDISCONNECT',
        "match": 'AT\+MDISCONNECT\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": 2
    },
    {
        "cmd": 'AT+MIPCLOSE',
        "match": 'AT\+MIPCLOSE\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": 2
    },
    # {
    #     "cmd": 'AT*CSQ=2',
    #     "match": '.*',
    # }
    # ,
]
